package com.softer.wxzj.mapper;

import com.softer.wxzj.entity.OwnerSignature;
import com.softer.wxzj.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface OwnerSignatureMapper extends BaseMapper<OwnerSignature> {
    int deleteByPrimaryKey(String id);
    /**
     * 根据项目id批量删除
     * @param id 项目id
     */
    int deleteByReqId(@Param("id")String id);
    /**
     * 根据项目id查询业主信息List展示分摊清册
     * @param reqId 项目id
     */
    List<OwnerSignature> selectByReqId(String reqId);
    List<OwnerSignature> selectByOwnerSignatureInfo(OwnerSignature ownerSignature);
    List<OwnerSignature>  selectByOwnerSignatureInfoFuzzy(@Param("reqId") String reqId,@Param("fuzzy")String fuzzy);
    /**
     * 根据项目id查询业主信息分摊清册汇总
     * @param reqId 项目id
     */
    OwnerSignature selectByReqIdSum(String reqId);
    /**
     * 业主签字页签 同意户数汇总与比例计算
     * @param reqId 项目id
     */
    OwnerSignature getSum(String reqId);


    int insert(OwnerSignature record);

    int insertSelective(OwnerSignature record);

    int updateByPrimaryKeySelective(OwnerSignature record);

    int updateByPrimaryKey(OwnerSignature record);

    int updateOwnerSignature(OwnerSignature record);
}